home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / Development / PowerD / Pdmod / modules / socket / utmp.m < prev   
Encoding:
Text File  |  2002-10-28  |  3.0 KB  |  76 lines

  1. /*
  2. **      $Filename: utmp.h $
  3. **      $Release$
  4. **      $Revision: 3.2 $
  5. **      $Date: 1994/02/24 04:34:23 $
  6. **
  7. **      Definitions of utmp and lastlog structures for 32 bit C compilers
  8. **
  9. **      Copyright © 1993 AmiTCP/IP Group, <AmiTCP-Group@hut.fi>
  10. **                  Helsinki University of Technology, Finland.
  11. **                  All rights reserved.
  12. */
  13.  
  14. /*
  15.  * Copyright (c) 1988 The Regents of the University of California.
  16.  * All rights reserved.
  17.  *
  18.  * Redistribution and use in source and binary forms, with or without
  19.  * modification, are permitted provided that the following conditions
  20.  * are met:
  21.  * 1. Redistributions of source code must retain the above copyright
  22.  *    notice, this list of conditions and the following disclaimer.
  23.  * 2. Redistributions in binary form must reproduce the above copyright
  24.  *    notice, this list of conditions and the following disclaimer in the
  25.  *    documentation and/or other materials provided with the distribution.
  26.  * 3. All advertising materials mentioning features or use of this software
  27.  *    must display the following acknowledgement:
  28.  *      This product includes software developed by the University of
  29.  *      California, Berkeley and its contributors.
  30.  * 4. Neither the name of the University nor the names of its contributors
  31.  *    may be used to endorse or promote products derived from this software
  32.  *    without specific prior written permission.
  33.  *
  34.  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  35.  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  36.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  37.  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  38.  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  39.  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  40.  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  41.  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  42.  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  43.  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  44.  * SUCH DAMAGE.
  45.  *
  46.  *      @(#)utmp.h      5.11 (Berkeley) 4/3/91
  47.  */
  48.  
  49. #define _PATH_UTMP      'AmiTCP:log/utmp'
  50. #define _PATH_WTMP      'AmiTCP:log/wtmp'
  51. #define _PATH_LASTLOG   'AmiTCP:log/lastlog'
  52.  
  53. #define UT_NAMESIZE     32
  54. #define UT_LINESIZE     32
  55. #define UT_HOSTSIZE     64
  56.  
  57. OBJECT lastlog
  58.     ll_time:LONG,                        /* the login time */
  59.     ll_uid:LONG,                         /* user ID */
  60.     ll_name[UT_NAMESIZE]:BYTE,           /* the login name */
  61.     ll_host[UT_HOSTSIZE]:BYTE           /* where the login originated */
  62.  
  63.  
  64. #define ll_line ll_host
  65.  
  66. OBJECT utmp
  67.     ut_time:LONG,                      /* the login time */
  68.     ut_sid:LONG,                       /* session ID */
  69.     ut_name[UT_NAMESIZE]:BYTE,         /* the login name */
  70.     ut_host[UT_HOSTSIZE]:BYTE         /* where the login originated */
  71.  
  72.  
  73. #define ut_line ut_host
  74.  
  75.  
  76.